package com.zhuojy.equity.mall.admin.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhuojy.equity.mall.admin.common.annotation.ExcelExport;
import com.zhuojy.equity.mall.admin.common.entity.TAuditCenter;
import com.zhuojy.equity.mall.admin.common.entity.TPosition;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 用户表(TUser)实体类
 *
 * @author makejava
 * @since 2024-03-18 21:04:27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_user")
public class TUser implements Serializable {
    private static final long serialVersionUID = -67921820145895046L;
/**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
/**
     * 用户名
     */
    private String username;
/**
     * 密码
     */
    private String password;

    private String productNo;

    private String icon;
/**
     * 真实姓名
     */
    @ExcelExport(value = "请假人",sort = 2)
    private String nickName;
/**
     * 状态
     */
    private String state;
    /***
     * 考勤Id
     */
    private Integer attendanceGroupId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;

    private String createdBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedAt;

    private String updatedBy;
/**
     * 职位id
     */
    private Integer positionId;

    @TableField(exist = false)
    private TPosition tPosition;
    @TableField(exist = false)
    private TAuditCenter tauditcenter;


}

